From: Gerd Moellmann Date: Mon, 24 Nov 2003 13:12:25 +0000 (+0000) Subject: (LD_SWITCH_SYSTEM_TEMACS) X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24905 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=7b7eb2f37e7fd3ba7cd2cfc83e4a9693c408f7a2;p=emacs.git (LD_SWITCH_SYSTEM_TEMACS) [__FreeBSD_version >= 500042]: Define as -znocombreloc because ld's default is incompatible with unexec. --- diff --git a/src/s/freebsd.h b/src/s/freebsd.h index f3049724d12..dbd08f5b3be 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h @@ -220,5 +220,13 @@ Boston, MA 02111-1307, USA. */ #define POSIX_SIGNALS 1 +/* The `combreloc' setting became the default, and it seems to be + incompatible with unexec. Symptom is an immediate SEGV in + XtInitializeWidget when starting Emacs under X11. */ + +#if defined __FreeBSD_version && __FreeBSD_version >= 500042 +#define LD_SWITCH_SYSTEM_TEMACS -znocombreloc +#endif + /* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb (do not change this comment) */